<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.prime.com.tr/ui" template="./template.xhtml">

    <ui:define name="screen">
        <p:fieldset>
            <h:form prependId="false">
                <h:panelGrid columns="3" id="grid" >
                    <h:outputLabel for="login" value="Login" />
                    <p:inputText id="login" value="#{autenticacaoAction.vo.email}"
                                 required="true" />
                    <h:message for="login" />

                    <h:outputLabel for="senha" value="Senha" />
                    <p:password id="senha" 
                                value="#{autenticacaoAction.vo.senha}" 
                                required="true" 
                                feedback="false" />
                    <h:message for="senha" />
                </h:panelGrid>
                <p:commandButton value="Acessar" 
                                 action="#{autenticacaoAction.acessar}" 
                                 ajax="false" />
                <p:commandLink value="Limpar" action="#{autenticacaoAction.limpar}"
                               process="@none" update="grid" />
            </h:form>
        </p:fieldset>
        <br/>
        <p:fieldset>
            <h:form>
                <h:commandLink value="Cadastrar Usuário" action="cadastroUsuario" />
            </h:form>
        </p:fieldset>
    </ui:define>

</ui:composition>